if __name__ == '__main__':
    s = 0
    n = 0
    print("n" + "       " + "s")
    while s <= 1000:
        n += 1
        s += n * n
        if s <= 1000:
            print(str(n) + "       " + str(s))
